<?php

$username = $_POST['username'];
$password = $_POST['password'];

include("opendb.php");
include("functions.php");
$res = isValidUser($username,$password);
if($res!=1) {
echo "$username = $password";
exit;
}

$User_Title = $_POST['User_Title'];
$Profile = $_POST['Profile'];
$Education = $_POST['Education'];
$Awards = $_POST['Awards'];
$Designations = $_POST['Designations'];
$Speciality = $_POST['Speciality'];
$Experience = $_POST['Experience'];
$Areas_Served = $_POST['Areas_Served'];
$Services_Provided = $_POST['Services_Provided'];
$Mantra = $_POST['Mantra'];



$uquery = "update Users set ";
$uquery.= " User_Title ='".  $User_Title."',";
$uquery.= " Profile ='".  $Profile."',";
$uquery.= " Education ='".  $Education."',";
$uquery.= " Awards ='".  $Awards."',";
$uquery.= " Designations ='".  $Designations."',";
$uquery.= " Specialty ='".  $Speciality."',";
$uquery.= " Experience ='".  $Experience."',";
$uquery.= " Areas_Served ='".  $Areas_Served."',";
$uquery.= " Services_Provided ='".  $Services_Provided."',";
$uquery.= " Mantra ='". $Mantra ."'";
$uquery.= " where Username='".$username."'";



$result = mysql_query($uquery) or die ("SQL Error".mysql_error());	

echo "1";



?>